--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 7315eb3edb2c7f0d2ea348bdcb5b82178625436d
Parents : 7b63164
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Date : 2026-05-21T03:19:46+02:00
Include alignment tags in strip_non_formatting_tags
Changes
Diff
diff --git a/nomadnet/util.py b/nomadnet/util.py
index 9b3427c..51aa440 100644
--- a/nomadnet/util.py
+++ b/nomadnet/util.py
@@ -182,4 +182,7 @@ def strip_non_formatting_tags(text):
text = re.sub(r'`<', '', text)
text = re.sub(r'`>', '', text)
text = re.sub(r'`{', '', text)
+ text = re.sub(r'`r', '', text)
+ text = re.sub(r'`c', '', text)
+ text = re.sub(r'`l', '', text)
return text
\ No newline at end of file
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────